<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/product/product/ProductPlanList.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/product/product/ProductPlanList.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ProductPlanList_Id',
                footer: "Foots",
                cnName: '生产计划-产品明细',
                name: 'product/ProductPlanList',
                url: "/ProductPlanList/",
                sortName: "ProductPlanList_Id"
            });
            const editFormFields = ref({"Product_Id":"","ProductCode":"","ProductName":"","ProductStandard":"","WorkOrderCode":"","Number":"","FinishNumber":""});
            const editFormOptions = ref([[{"title":"产品名称","field":"ProductName"},
                               {"title":"产品规格","field":"ProductStandard"},
                               {"title":"工单编号","field":"WorkOrderCode"},
                               {"title":"完成数","field":"FinishNumber","type":"number"},
                               {"title":"产品ID","field":"Product_Id","type":"number"},
                               {"title":"产品编号","field":"ProductCode"},
                               {"title":"数量","field":"Number","type":"number"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:'ProductPlanList_Id',title:'生产计划产品明细表主键ID',type:'int',width:110,require:true,align:'left',sort:true},
                       {field:'ProductPlan_Id',title:'生产计划',type:'int',width:110,align:'left'},
                       {field:'Product_Id',title:'产品ID',type:'int',width:110,align:'left'},
                       {field:'ProductCode',title:'产品编号',type:'string',width:220,align:'left'},
                       {field:'ProductName',title:'产品名称',type:'string',width:220,align:'left'},
                       {field:'ProductStandard',title:'产品规格',type:'string',width:220,align:'left'},
                       {field:'WorkOrderCode',title:'工单编号',type:'string',width:220,align:'left'},
                       {field:'Number',title:'数量',type:'int',width:110,align:'left'},
                       {field:'FinishNumber',title:'完成数',type:'int',width:110,align:'left'},
                       {field:'CreateDate',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'Creator',title:'创建人',type:'string',width:100,align:'left'},
                       {field:'Updator',title:'修改人',type:'string',width:220,align:'left'},
                       {field:'UpdateDate',title:'修改时间',type:'datetime',width:150,align:'left',sort:true}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
